﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class cn_common_top5 : System.Web.UI.UserControl
{
    protected int selects = 1;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            GetInfo();
        }
    }

    private void GetInfo()
    {
        string sql1 = "select Contents from Whir_U_SinglePage where TypeID=94";
        DataTable dt1 = Whir.SQLServerDAL.DbHelperSQL.Query(sql1).Tables[0];
        if (dt1 != null && dt1.Rows.Count > 0)
        {
            if (!string.IsNullOrEmpty(dt1.Rows[0]["Contents"].ToString()))
               ltrPostTitle.Text = dt1.Rows[0]["Contents"].ToString(); 
            else
                selects = 0;
        }
        
           
        
    }
}
